<?
session_start();

//conect to mysql
$db = mysql_connect("localhost", "usr_2012_16", "se09member");
if (!$db) {
	print "Error - Could not connect to MySQL";
	exit;
}
// Select the database
$er = mysql_select_db("db_2012_16");
if (!$er) {
	print "Error - Could not select the database db_2012_16";
	exit;
}

$score = $HTTP_RAW_POST_DATA;
print "score=$score";

$query = "update se_user set score = score + $score where uid = ".$_SESSION['uid'].";";
mysql_query($query);
?>
